package org.ricks.ioc.scheduler;

import org.ricks.ioc.anno.Bean;
import org.ricks.ioc.event.anno.EventReceiver;
import org.ricks.ioc.utils.Logger;

@Bean
public class LoginController {

    @EventReceiver
    public void onLoginDelayEvent (LoginDelayEvent loginDelayEvent) {
        Logger.info("正在执行。。。。");
    }

    @Scheduled(initialDelay = 1000, fixedRate = 2000)
    public void fixRate () {
        Logger.info("正在延迟1秒执行 固定频率2秒任务。。。。 ");
    }
}
